<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="Step 10: (Optional) Modifying the Snapshot Quota of a Project">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="en-us_topic_0000001792503690.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="30-OceanProtect Appliance 1.5.0-1.6.0 Help Center">
<meta name="DC.Publisher" content="20240608">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="EN-US_TOPIC_0000001792343930">
<meta name="DC.Language" content="en-us">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>Step 10: (Optional) Modifying the Snapshot Quota of a Project</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="EN-US_TOPIC_0000001792343930"></a><a name="EN-US_TOPIC_0000001792343930"></a>

<h1 class="topictitle1">Step 10: (Optional) Modifying the Snapshot Quota of a Project</h1>
<div><p>The default snapshot quota of each project on the OpenStack cloud platform is 10. If more than 10 cloud disks are concurrently backed up in a project, the backup job will fail. This section describes how to modify the snapshot quota of a project on the OpenStack cloud platform.</p>
<div class="section"><h4 class="sectiontitle">Procedure</h4><ol><li><span>Use PuTTY to log in to any OpenStack node using the management IP address as user <strong>fsp</strong>.</span></li><li><span>Run the following command to switch to user <strong>root</strong>:</span><p><pre class="screen">su - root</pre>
</p></li><li><span>Run the following command to import environment variables, select <strong>openstack environment variable (keystone v3)</strong>, and enter the password:</span><p><pre class="screen">source set_env </pre>
</p></li></ol><ol start="4"><li><span>Run the following command to query the ID of the project whose snapshot quota needs to be modified:</span><p><pre class="screen">openstack project list</pre>
</p></li><li><span>Run the following command to query the current snapshot quota of the project:</span><p><pre class="screen">cinder quota-usage <em>ProjectID</em></pre>
<div class="p">Example:<pre class="screen">42F8515F-070B-E711-BE89-C0BFC0BA9506:~ # cinder quota-usage 9c3792495cfd4811a0055e8c21601e9f
+-------------------------+--------+----------+-------+-----------+
| Type                    | In_use | Reserved | Limit | Allocated |
+-------------------------+--------+----------+-------+-----------+
| backup_gigabytes        | 0      | 0        | 5120  | 0         |
| backups                 | 0      | 0        | 100   | 0         |
| gigabytes               | 4511   | 0        | -1    | 0         |
| gigabytes_\\test        | 1      | 0        | -1    | 0         |
| gigabytes___DEFAULT__   | 2171   | 0        | -1    | 0         |
| gigabytes_cloud_volume  | 1584   | 0        | -1    | 0         |
| gigabytes_luodan_share  | 4      | 0        | -1    | 0         |
| gigabytes_no_share      | 8      | 0        | -1    | 0         |
| gigabytes_no_share_test | 2      | 0        | -1    | 0         |
| gigabytes_omVolumeType0 | 290    | 0        | -1    | 0         |
| gigabytes_op            | 0      | 0        | -1    | 0         |
| gigabytes_share         | 451    | 0        | -1    | 0         |
| groups                  | 2      | 0        | 10    | 0         |
| per_volume_gigabytes    | 0      | 0        | -1    | 0         |
<strong>| </strong><strong>snapshots            </strong><strong>| 0     | 0       | 10   | 0        |</strong>
... </pre>
</div>
</p></li><li><span>Run the following command to modify the snapshot quota:</span><p><pre class="screen">cinder quota-update <em>ProjectID</em> --snapshots <em>Quota</em></pre>
<p>Modify the snapshot quota based on the site requirements. If you want to change quotas of snapshots to be unlimited, set the quota to <strong>–1</strong>. For example:</p>
<pre class="screen">cinder quota-update 9c3792495cfd4811a0055e8c21601e9f --snapshots -1</pre>
<div class="note"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p>Snapshot quota is not the global configuration and is configured for a single project. If you need to modify the snapshot quotas of multiple projects, perform the operations described in this section for each project.</p>
</div></div>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000001792503690.html">Backing Up an OpenStack Cloud Server</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">Copyright &copy; Huawei Technologies Co., Ltd.</div></body>
</html>